package com.yc.util;

import com.yc.SystemInfoPro;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * @author zwei
 * @create 2024-08-18 16:14
 */
public class SystemInfoUtil implements ISystemInfoUtil{
    @Autowired
    private SystemInfoPro systemInfoPro;
    @Autowired
    private ConfigurableEnvironment environment;
    @Override
    public String getAppInfo() {
        return systemInfoPro.getCopyright()+"\t"+systemInfoPro.getAuthor();
    }

    @Override
    public String getSystemInfo() {
        return environment.getProperty("os.name")+"\t"+environment.getProperty("user.home");
    }
}
